package com.dick.base.parameter;

import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
public class ReduceParameter {

    /**
     * from里不包含to
     */
    @NotEmpty(message = "请选择要合包的托盘")
    private List<Long> from = new ArrayList<>();

    @NotNull(message = "请选择合包到哪个托盘")
    private Long to;

    @DecimalMin(value = "0", inclusive = false, message = "托盘毛重必须大于0")
    private BigDecimal totalWeight;
}
